/*
 * @Author       : Wuhexing
 * @Date         : 2021-12-08 21:38:45
 * @LastEditTime : 2021-12-11 22:25:02
 * @Description  : file content
 * @FilePath     : \USERd:\Git-code\stm32\My_OS\v0.2 - 副本\Hex_OS\os_core.h
 */
#ifndef OS_CORE_H
#define OS_CORE_H

#define  OS_ENTER_CRITICAL()  {cpu_sr = OS_CPU_SR_Save();}//进入临界区
#define  OS_EXIT_CRITICAL()   {OS_CPU_SR_Restore(cpu_sr);}//退出临界区

unsigned int OS_CPU_SR_Save(void);
void OS_CPU_SR_Restore(unsigned int);
void __OS_TASKSCHDULE(void);
void __OS_TASKSTART(void);

#endif


